package cn.webestar.scms.commons.api;

import cn.webestar.scms.commons.entity.Entity;
import com.baomidou.mybatisplus.core.conditions.Wrapper;

public abstract class PageBody extends Body{

    private Integer pageNum = 1;
    private Integer pageSize = 50;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNo) {
        this.pageNum = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public abstract <T extends Entity> Wrapper<T> toQueryWapper();

}
